const {http}=require("../../utils/util")

Page({
  data: {
    
  },
  onLoad() {
    var lists=[]
    var url=`http://47.108.197.28:3000/top/album`
   http({
     url,
     
     success:res=>{

      console.log(res.data.albums);
      res.data.albums.forEach(item=>{
        var {name,picUrl}=item;
        lists.push({name,picUrl});
        this.setData({lists})
      })
      
      
     }
   })
  }
})
